import tbLogo from "@/static/images/tb.png";
import zfbLogo from "@/static/images/zfb.png";
import jdLogo from "@/static/images/jd.png";
import mtLogo from "@/static/images/mt.png";
import snLogo from "@/static/images/sn.png";
export default {
    id: "1-6",
    title: "项目组",
    name: "projectTeam",
    ename: "projectComponent",
    icon: "iconfont icon-icon-project",
    canDelete: true,
    fixedBottom: false, // 固定在底部，其下不能再添加组件
    active: "",
    main: {

        //组件样式
        listStyle: "row2", //列表类型：row2双列，row3三列，list列表
        rows: { //多与1列展示的时候，是瀑布流，所以这里定好，根据容器高度，按最小追加原则组装瀑布流。
            left: [],
            center: [],
            right: [],
        },

        //组件内容
        getListType: 1, //获取数据列表方式，1手动选择，2选择全部
        list: [

            /* {
             proId: 1,
             proLogo: tbLogo, //图片logo
             proName: "项目标题项目标题项目标题", //项目标题
             one: "项目描述项目描述项目描述项目描述", //项目副标题
             linkUrl: "",
             linkName: "",
             list: [{
                 id: 1,
                 commissionName: "佣金成本",
                 commissionValue: 21,
                 balanceName: "结算名称",
                 balanceValue: "首购T1"
             }, {
                 id: 2,
                 commissionName: "佣金成本",
                 commissionValue: 15,
                 balanceName: "结算名称",
                 balanceValue: "首购T1"
             }, {
                 id: 3,
                 commissionName: "佣金成本",
                 commissionValue: 30,
                 balanceName: "结算名称",
                 balanceValue: "首购T1"
             }],
         },
         {
             proId: 2,
             proLogo: mtLogo, //图片logo
             proName: "项目标题", //项目标题
             one: "项目描述项目描述项目描述项目描述", //项目副标题
             linkUrl: "",
             linkName: "",
             list: [{
                 id: 4,
                 commissionName: "佣金成本",
                 commissionValue: 21,
                 balanceName: "结算名称",
                 balanceValue: "首购T1"
             }, {
                 id: 5,
                 commissionName: "佣金成本",
                 commissionValue: 15,
                 balanceName: "结算名称",
                 balanceValue: "首购T1"
             }],
         },
         {
             proId: 3,
             proLogo: jdLogo, //图片logo
             proName: "项目标题", //项目标题
             one: "项目描述", //项目副标题
             linkUrl: "",
             linkName: "",
             list: [{
                 id: 6,
                 commissionName: "佣金成本",
                 commissionValue: 21,
                 balanceName: "结算名称",
                 balanceValue: "首购T1"
             }],
         },
         {
             proId: 4,
             proLogo: zfbLogo, //图片logo
             proName: "项目标题", //项目标题
             one: "项目描述", //项目副标题
             list: [],
             linkUrl: "",
             linkName: "",
         }, {
             proId: 5,
             proLogo: snLogo, //图片logo
             proName: "项目标题", //项目标题
             one: "项目描述", //项目副标题
             list: [],
             linkUrl: "",
             linkName: "",
         }*/
        ],

        //模块样式
        moduleBgStyle: "color", //组件背景的设置方式，"transparent"透明；"color"颜色；"img"图片
        moduleBgColor: "#FFFFFF", //项目组单元背景色
        moduleBgImg: "", //项目组单元背景图片
        titleFontColor: "#000000", //标题文字色
        titleFontSize: 16, //标题文字大小
        highLightFontColor: "#FF4500", //高亮文字颜色
        showSubTitle: true, //是否显示描述
        subTitleFontColor: "#565656", //描述文字颜色
        showHighLight: true, //是否显示佣金
        logoSize: 40, //logo宽高大小
        modulePT: 10, //上间距
        modulePB: 10, //下间距
        modulePLR: 20, //左右间距
        moduleBTR: 10, //上边角
        moduleBBR: 10, //下边角

        //容器样式
        wrapperBgColor: "#FFFFFF", //容器背景颜色
        wrapperBgImg: "", //容器背景图片
        wrapperPT: 0, // 上间距
        wrapperPB: 0, // 下间距
        wrapperPLR: 0, // 左右间距
        wrapperBTR: 0, // 上边角
        wrapperBBR: 0, // 下边角
    },
    right: [
        {
            id: "1-6-1",
            name: "模块风格",
            direction: "column",
            open: true,
            catalog: [{
                id: "1-6-1-2",
                name: "",
                ename: "listStyle",
                title: "列表类型：",
                display: "block",
                value: "row2",
                controlName: "radioGroupComponent",
                options: [{
                    id: "row2",
                    name: "双列",
                    icon: "iconfont icon-lianglie",
                    display: "block",
                    ename: "listStyle",
                    value: "row2",
                },
                {
                    id: "row3",
                    name: "三列",
                    icon: "iconfont icon-sanlie",
                    ename: "listStyle",
                    display: "block",
                    value: "row3",
                },
                {
                    id: "list",
                    name: "列表",
                    icon: "iconfont icon-huaban7",
                    ename: "listStyle",
                    display: "block",
                    value: "list",
                }
                ],
            }, {
                id: "1-6-3-4",
                title: "标题文字：",
                display: "block",
                name: "",
                ename: "titleFontColor",
                value: "#000000",
                controlName: "colorComponent",
                default: "#000000",

            },
            {
                id: "1-6-3-5",
                title: "佣金文字：",
                display: "block",
                name: "",
                ename: "highLightFontColor",
                value: "#D54135",
                controlName: "colorComponent",
                default: "#D54135",
            }, {
                id: "1-6-3-6",
                title: "显示描述：",
                display: "block",
                name: "",
                ename: "showSubTitle",
                value: true,
                controlName: "radioComponent",
                options: [
                    { id: true, name: "显示", value: true },
                    { id: false, name: "不显示", value: false }
                ]
            }, {
                id: "1-6-3-61",
                title: "描述文字颜色：",
                display: "block",
                name: "",
                ename: "subTitleFontColor",
                value: "#565656",
                controlName: "colorComponent",
                default: "#565656",
            }, {
                id: "1-6-3-7",
                title: "显示佣金：",
                display: "block",
                name: "",
                ename: "showHighLight",
                value: true,
                controlName: "radioComponent",
                options: [
                    { id: true, name: "显示", value: true },
                    { id: false, name: "不显示", value: false }
                ]
            }],
        },
        {
            id: "1-6-3",
            name: "模块样式",
            direction: "column",
            open: true,
            catalog: [{
                id: "1-6-3-1",
                title: "背景设置：",
                display: "block",
                name: "",
                ename: "moduleBgStyle",
                value: "color",
                controlName: "radioComponent",
                options: [{
                    id: "transparent",
                    name: "透明",
                    value: "transparent",
                }, {
                    id: "color",
                    name: "颜色",
                    value: "color",
                }, {
                    id: "img",
                    name: "图片",
                    value: "img",
                }]
            }, {
                id: "1-6-3-2",
                title: "背景颜色：",
                display: "block",
                name: "",
                ename: "moduleBgColor",
                value: "#FFFFFF",
                controlName: "colorComponent",
                default: "#FFFFFF",
            }, {
                id: "1-6-3-3",
                title: "背景图片：",
                display: "none",
                name: "",
                ename: "moduleBgImg",
                controlName: "chooseImageComponent",
                default: "",
                value: "",
            },
            {
                id: "1-6-3-8",
                title: "Logo大小：",
                display: "block",
                name: "",
                ename: "logoSize",
                min: 20,
                max: 150,
                step: 1,
                controlName: "sliderComponent",
                default: 40,
                value: 40,
                suffix: "px",
            },
            {
                id: "1-6-3-9",
                title: "标题文字大小：",
                display: "block",
                name: "",
                ename: "titleFontSize",
                min: 12,
                max: 48,
                step: 1,
                controlName: "sliderComponent",
                default: 16,
                value: 16,
                suffix: "px",
            },
            {
                id: "1-6-3-10",
                title: "上间距：",
                display: "block",
                name: "",
                ename: "modulePT",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 10,
                value: 10,
                suffix: "px",
            },
            {
                id: "1-6-3-11",
                title: "下间距：",
                display: "block",
                name: "",
                ename: "modulePB",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 10,
                value: 10,
                suffix: "px",
            },
            {
                id: "1-6-3-12",
                title: "左右间距：",
                display: "block",
                name: "",
                ename: "modulePLR",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 20,
                value: 20,
                suffix: "px",
            },
            {
                id: "1-6-3-13",
                title: "上边角：",
                display: "block",
                name: "",
                ename: "moduleBTR",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 10,
                value: 10,
                suffix: "px",
            },
            {
                id: "1-6-3-14",
                title: "下边角：",
                display: "block",
                name: "",
                ename: "moduleBBR",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 10,
                value: 10,
                suffix: "px",
            }
            ],
        }, {
            id: "1-6-2",
            name: "模块内容",
            direction: "column",
            open: true,
            catalog: [
                {
                    id: "1-6-2-1",
                    name: "",
                    ename: "getListType",
                    title: "选择项目:",
                    display: "block",
                    controlName: "radioComponent",
                    value: 1,
                    options: [{
                        id: 1,
                        name: "手动选择",
                        value: 1,
                    },
                    {
                        id: 2,
                        name: "选择全部",
                        value: 2,
                    }
                    ]
                },
                {
                    id: "1-6-2-2",
                    name: "",
                    ename: "list",
                    title: "",
                    display: "block",
                    controlName: "projectGroupComponent",
                    max: 50,
                    min: 1,
                    list: [

                        /*
                        {
                            proId: 1,
                            proLogo: tbLogo, //图片logo
                            proName: "项目标题", //项目标题
                            one: "项目描述", //项目副标题
                            linkUrl: "",
                            linkName: "",
                            list: [{
                                id: 1,
                                commissionName: "佣金成本",
                                commissionValue: 21,
                                balanceName: "结算名称",
                                balanceValue: "首购T1"
                            }, {
                                id: 2,
                                commissionName: "佣金成本",
                                commissionValue: 15,
                                balanceName: "结算名称",
                                balanceValue: "首购T1"
                            }, {
                                id: 3,
                                commissionName: "佣金成本",
                                commissionValue: 30,
                                balanceName: "结算名称",
                                balanceValue: "首购T1"
                            }],
                        },
                        {
                            proId: 2,
                            proLogo: mtLogo, //图片logo
                            proName: "项目标题", //项目标题
                            one: "项目描述", //项目副标题
                            linkUrl: "",
                            linkName: "",
                            list: [{
                                id: 4,
                                commissionName: "佣金成本",
                                commissionValue: 21,
                                balanceName: "结算名称",
                                balanceValue: "首购T1"
                            }, {
                                id: 5,
                                commissionName: "佣金成本",
                                commissionValue: 15,
                                balanceName: "结算名称",
                                balanceValue: "首购T1"
                            }],
                        },
                        {
                            proId: 3,
                            proLogo: jdLogo, //图片logo
                            proName: "项目标题", //项目标题
                            one: "项目描述", //项目副标题
                            linkUrl: "",
                            linkName: "",
                            list: [{
                                id: 6,
                                commissionName: "佣金成本",
                                commissionValue: 21,
                                balanceName: "结算名称",
                                balanceValue: "首购T1"
                            }],
                        },
                        {
                            proId: 4,
                            proLogo: zfbLogo, //图片logo
                            proName: "项目标题", //项目标题
                            one: "项目描述", //项目副标题
                            linkUrl: "",
                            linkName: "",
                            list: [],
                        }, {
                            proId: 5,
                            proLogo: snLogo, //图片logo
                            proName: "项目标题", //项目标题
                            one: "", //项目副标题
                            linkUrl: "",
                            linkName: "",
                            list: [],
                        },
                        
                        */

                    ],
                }
            ],
        }, {
            id: "1-6-4",
            name: "容器样式",
            direction: "column",
            open: true,
            catalog: [{
                id: "1-6-4-1",
                title: "背景颜色：",
                display: "block",
                name: "",
                ename: "wrapperBgColor",
                controlName: "colorComponent",
                default: "#FFFFFF",
                value: "#FFFFFF",
            }, {
                id: "1-6-4-2",
                title: "背景图片：",
                display: "block",
                name: "",
                ename: "wrapperBgImg",
                controlName: "chooseImageComponent",
                default: "",
                value: "",
            }, {
                id: "1-6-4-3",
                title: "上间距：",
                display: "block",
                name: "",
                ename: "wrapperPT",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 0,
                value: 0,
                suffix: "px",
            },
            {
                id: "1-6-4-4",
                title: "下间距：",
                display: "block",
                name: "",
                ename: "wrapperPB",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 0,
                value: 0,
                suffix: "px",
            },
            {
                id: "1-6-4-5",
                title: "左右间距：",
                display: "block",
                name: "",
                ename: "wrapperPLR",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 0,
                value: 0,
                suffix: "px",
            },
            {
                id: "1-6-4-6",
                title: "上边角：",
                display: "block",
                name: "",
                ename: "wrapperBTR",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 0,
                value: 0,
                suffix: "px",
            },
            {
                id: "1-6-4-7",
                title: "下边角：",
                display: "block",
                name: "",
                ename: "wrapperBBR",
                min: 0,
                max: 50,
                step: 1,
                controlName: "sliderComponent",
                default: 0,
                value: 0,
                suffix: "px",
            }
            ]
        }
    ],
};
